package com.mdd.common.validate.card;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 卡片参数
 *
 * @author lrc
 */
@Data
@ApiModel("会员卡核销参数")
public class CardVerifyValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    private Integer id;

    @NotNull(message = "消费金额不能为空")
    @ApiModelProperty(value = "消费金额")
    private BigDecimal subAmount;

    @NotNull(message = "消费项目不能为空")
    @ApiModelProperty(value = "消费项目")
    private String remark;

    @NotNull(message = "验证码不能为空")
    @ApiModelProperty(value = "验证码")
    private String code;

}
